package com.gitee.feizns.quickstart.mybatis.plus.spring.boot.autoconfigure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 对mybatis plus做些配置
 * @see QuickstartMybatisPlusConfiguration
 * @author feizns
 * @since 2023/3/4
 */
@Data
@ConfigurationProperties("quickstart.mybatis.plus")
public class QuickstartMybatisPlusProperties {

    /**
     * 分页查询上限
     */
    private int pageMaxLimit = Integer.MAX_VALUE;

    /**
     * 阻止攻击内部拦截器 已启用
     */
    private boolean blockAttackInnerInterceptorEnabled = true;

    /**
     * 乐观锁内拦截器启用
     */
    private boolean optimisticLockerInnerInterceptorEnabled = false;

    /**
     * 启用 DDL Auto
     */
    private boolean enabledDdlAuto = true;

}
